package com.cg.mapper;

import com.cg.entity.EvaluationReport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface EvaluationReportMapper {
    int insert(EvaluationReport report);
    
    @Select("SELECT * FROM evaluation_report WHERE id = #{id}")
    EvaluationReport selectById(@Param("id") Long id);
    
    @Select("SELECT * FROM evaluation_report WHERE resume_id = #{resumeId} ORDER BY create_time DESC LIMIT 1")
    EvaluationReport selectLatestByResumeId(@Param("resumeId") Long resumeId);
}


